package lab02.test28;

import java.util.InputMismatchException;
import java.util.Scanner;

public class Test28 {
    public static void main(String[] args) {
        System.out.println("请输入圆的半径：" );
        Scanner in=new Scanner(System.in);
        try {
            double radius=in.nextDouble();
            System.out.println("圆的面积为："+2*3.14*radius);
        }
        catch (InputMismatchException e){
            System.out.println("输入类型有误！"+'\n'+"请重新运行程序输入！");

                }
            }
        }


